package com.subfg.api.constant;

public enum ConstantEnum {
    MESSAGE_SEND_CHECK(200, "message.send.check"),



    SYSTEM_UNKNOWN(-300, "system.error"),
    SYSTEM_CALL_ERROR(-300, "system.call.error"),

    LOCK_TIME(-400, "lock.limit"),
    MESSAGE_DATA(-400, "missing.data"),

    ORDER_ERROR(-400, "order.error"),

    TOKEN_VERIFY_INFO_ERROR(-1000, "token.verify.info.error"),
    TOKEN_NULL_INFO(-1000, "token.null.info"),
    TOKEN_INFO_EXPIRE(-1000, "token.info.expire"),
    TOKEN_BE_REPLACED(-1000, "token.info.bereplaced"),
    TOKEN_KICK_OUT(-1000, "token.info.kickout"),

    UPLOAD_CLIENT_ERROR(-1, "upload.client.error"),
    FG_JOIN_FULL(-1, "familyGroup.join.fail.full"),
    FIND_DATA_NULL(-200, "find.data.null"),


    REPETITION_HANDLER(-101, "repetition.handler"),
    SERVER_PROCESSED(-101, "server.processed"),

    TOKEN_SUCCESS(0, "token.verify.success"),
    REQUEST_PAGE_LIMIT(-1, "request.page.limit"),
    /**
     * 安全及token验证
     */

    VERIFY_CODE_ERROR(-1, "verify.code.error"),
    VERIFY_PAY_FAIL(-1,  "verify.pay.fail"),
    PAYMENT_CREATE_ERROR(-1, "payment.create.error"),

    /**
     * 用户错误
     */
    USER_LOGIN_FAIL_ACCOUNT_PWD(-1, "user.login.fail.account.pwd"),
    USER_UPDATE_OLDPWD_FAIL(-1, "user.update.oldpwd.fail"),
    USER_ACCOUNT_EXIST_SYSTEM(-1, "user.account.exist.system"),
    USER_REGISTER_FAIL(-1, "user.register.fail"),
    USER_REGISTER_FAIL_PHONE_EXIST(-1, "user.register.fail.phone.exist"),
    USER_REGISTER_FAIL_VERIFY_ACCOUNT(-1, "user.register.fail.verify.account"),



    NOT_PERMISSION(-1, "not.permission"),



    REFUND_USER_AMOUNT(1, "refund.user.amount"),
    CLOSED_FAMILY_GROUOP(1, "close.family.amount"),
    /**
     * 提现
     */
    WITHDRAW_FAIL_BALANCE_INSUFFICIENT(-1, "withdraw.fail.balance.insufficient"),


    /**
     * 收藏
     */
    FAVORITE_ADD_FAIL(-1, "add.favorite.fail"),

    /**
     * 家庭组错误信息
     */
    FAMILYGROUP_CREATE_FAIL(-1, "familyGroup.create.fail"),
    FAMILYGROUP_JOIN_FAIL(-1, "familyGroup.join.fail"),
    FAMILYGROUP_AMOUNT_FAIL(-1, "familyGroup.amount.fail"),
    FAMILYGROUP_JOIN_FAIL_FULL(-1, "familyGroup.join.full"),
    FMAILYGROUP_JOIN_FAIL_ADDED(-1, "familyGroup.join.fail.added"),
    FAMILYGROUP_JOIN_FAIL_MYFG(-1, "familyGroup.join.fail.myfg"),



    PAYMENT_STRIPE_AMOUNT(-1, "payment.stripe.amount"),



    NOT_JOIN_MY_CREATE_FG(-1, "not.join.my.create.fg"),
    NOT_JOIN_MY_JOIN_FG(-1, "not.join.my.join.fg"),
    NOT_JOIN_FG_STATUS(-1, "not.join.fg.status"),
    NOT_RENEWS_MY_FG(-1, "not.renews.my.fg"),

    NOT_CREATE_PAY_INFO(-1, "not.create.pay.info"),
    /**
     * 系统未知异常
     */
    NOT_USERINFO(-1, "not.user.info"),
    NOT_FMAILYGROUPINFO(-1, "not.fg.info"),
    NOT_FGMEMBERINFO(-1, "not.fgmember.info"),
    NOT_PRODICT_PLAN_INFO(-1, "not.product.plan.info"),
    NOT_ORDERINFO(-1, "not.order.info"),
    NOT_PLANINFO(-1, "not.plan.info"),
    NOT_PRODICTINFO(-1, "not.product.info"),
    NOT_PAYCYCLEINFO(-1, "not.pay.cycle.info"),
    NOT_REGIONINFO(-1, "not.region.info"),
    NOT_PRODICTTYPEINFO(-1, "not.productType.info"),
    NOT_SUBSCRIPTINF(-1, "not.subscript.info"),
    NOT_ORDERLISTINFO(-1, "not.orderList.info"),
    NOT_USER_DEVICEINFO(-1, "not.user.device.info"),
    NOT_USER_PAY_PASSWORD(-1, "not.user.pay.password"),
    NOT_USER_FUND_INFO(-1, "not.user.fund.info"),
    NOT_USER_AUTH_INFO(-1, ""),
    NOT_USER_SETTING_PAYPWD(-1, "not.user.setting.paypasswd"),

    NOT_FILE_SUFFIX_RULE(-1, "not.file.suffix.rule"),

    NOT_SUPPORT_API(-400, "not.support.api"),
    NOT_SUPPORT_PAY(-1, "not.support.pay"),
    NOT_SUPPORT_CLIENT(-1, "not.support.client"),
    NOT_SUPPORT_EMAIL_TYPE(-1, "not.support.email.type"),
    NOT_SUMVACANCY_ZERO(-1, "not.sumvacanct.zero")
    ;


    private Integer code;

    private String message;

    ConstantEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

    public void setCode(Integer code) { this.code = code; }

    public void setMessage(String message) { this.message = message; }

}
